package com.shiro.services;

import com.okok.entity.User;
import com.shiro.dao.UserSimpleDao;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * 用户管理类.
 * 
 * @author erich.liu
 */

@Component
public class AccountSimpleService extends AbstractService{

	private static Logger logger = LoggerFactory.getLogger(AccountSimpleService.class);

	private UserSimpleDao userSimpleDao;

	public User findUserByLoginName(String loginName, String app) {
		logger.info("findUserByLoginName enter");
		return userSimpleDao.findByLoginName(loginName, app);
	}

	@Autowired
	public void setUserSimpleDao(UserSimpleDao userSimpleDao) {
		this.userSimpleDao = userSimpleDao;
	}
	

}